package com.xhsj.user.pms.oareply.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.xhsj.user.pms.oareply.vo.CorrectionFileListVo;
import org.apache.ibatis.annotations.Mapper;
import com.xhsj.user.pms.oareply.entity.TbPamPatentOaFile;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.io.Serializable;
import java.util.List;
/**
 * <p>
 * 专利OA答复文件 Mapper 接口
 * </p>
 *
 * @author liuqinghua
 * @since 2021-07-28
 */
@Mapper
public interface TbPamPatentOaFileMapper extends BaseMapper<TbPamPatentOaFile> {

    void deleteByDataId(@Param("dataId") Long dataId);


    List<TbPamPatentOaFile> findListByDataId(@Param("dataId") Serializable dataId);

    /**
     * @Description:  获取oa文件
     * @Author: liuqinghua
     * @Date: 2021/8/2
     */
    IPage<CorrectionFileListVo> findOAFileList(Page<CorrectionFileListVo> page1, @Param("dataId") Long dataId);
    /**
     * @Description:  获取oa文件-不分页
     * @Author: liuqinghua
     * @Date: 2021/8/9
     */
    List<CorrectionFileListVo> findOAFileList(@Param("dataId") Long dataId);
}
